package com.leyou.item.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leyou.item.dto.SpecParamDTO;
import com.leyou.item.entity.SpecParam;

import java.util.List;


public interface SpecParamService extends IService<SpecParam> {
    //根据规格参数组得id,查询规格参数集合
    List<SpecParamDTO> querySpecParamListByGroupId(Long gid, Long cid, Boolean searching);

    //根据spuId,查询spu的所有规格参数,值value
    List<SpecParamDTO> querySpuValuesBySpuId(Long spuId, Boolean searching);

    //新增规格参数
    void addSpecParam(SpecParamDTO specParamDTO);

    //修改规格参数
    void updateSpecParam(SpecParamDTO specParamDTO);
}
